﻿using NETCore.Encrypt;
using System;
using System.Collections.Generic;
using System.Text;

namespace TL_Cloud.Utils
{

    public class Base64Helper
    {
        public static string Encrypt(string content, Encoding encoding = null)
        {
            if (encoding == null)
            {
                return EncryptProvider.Base64Encrypt(content);
            }
            else
            {
                return EncryptProvider.Base64Encrypt(content, encoding);
            }
        }
        public static string Decrypt(string content, Encoding encoding = null)
        {
            if (encoding == null)
            {
                return EncryptProvider.Base64Decrypt(content);
            }
            else
            {
                return EncryptProvider.Base64Decrypt(content, encoding);
            }
        }
    }
}
